#include"progress.h"

int main()
{
    //text1();
    
    //1.version_1
    //version_1();

    //2.version_2
    srand((unsigned)time(NULL));


    int file_size = 1024*1024*1024;
    int file_over = 0;
    
    printf("\n");

    while(file_over<=file_size)
    {
        int one = (rand()%(1024*1024*10));
        file_over += one;

        float raint = ((file_over*(1.0)/file_size)*100);
        version_2(raint);
    }
    return  0;
}
